@using Rail.Net.Core.Model
@model RelationDescription

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>RelationDescription</legend>

    <div class="display-label">ValidFrom</div>
    <div class="display-field">@String.Format("{0:g}", Model.ValidFrom)</div>

    <div class="display-label">ValidTo</div>
    <div class="display-field">@String.Format("{0:g}", Model.ValidTo)</div>

    <div class="display-label">StationType</div>
    <div class="display-field">@Model.StationType</div>

    <div class="display-label">Included</div>
    <div class="display-field">@Model.Included</div>

    <div class="display-label">Relation</div>
    <div class="display-field">@(Model.Relation == null ? "None" : Model.Relation.RelationNumber.ToString())</div>

    <div class="display-label">Station</div>
    <div class="display-field">@(Model.Station == null ? "None" : Model.Station.Eva)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


